/*
 * @Descripttion: 说明
 * @version: V1.0
 * @Author: aqiang
 * @Date: 2024-07-16 00:31:45
 * @LastEditTime: 2024-08-18 00:02:56
 */
/*
 * @Descripttion: 说明
 * @version: V1.0
 * @Author: aqiang
 * @Date: 2024-03-05 01:52:30
 * @LastEditTime: 2024-07-13 23:10:36
 */
import service from '@/utils/request'

// 获取跟进信息
export const useFollowApi = (id: Number) => {
	return service.get('/followupDetails/' + id)
}

// 揽货list
export const collectExpressApi = (dataForm: any) => {
	console.log(dataForm, 'dataForm')
	return service.post('/collectExpress/select', dataForm)
}

export const collectExpressSmallApi = (dataForm: any) => {
	return service.post('/collectExpress/selectPackList', dataForm)
}
// 新增

export const collectExpressAddApi = (dataForm: any) => {
	return service.post('/collectExpress/add', dataForm)
}
// 客户等信息

export const getIdApi = () => {
	return service.get('/customerInfo/getData')
}
export const useDictDataApi = (id: Number) => {
	return service.get('/sys/dict/data/' + id)
}


export const useDictDataSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/dict/data', dataForm)
	} else {
		return service.post('/sys/dict/data', dataForm)
	}
}

export const selectPackList = (dataForm: any) => {
	return service.post('/collectExpress/selectPackList', dataForm)
}

export const collectExpressSelectSmallApi = (dataForm: any) => {
	return service.post('/collectExpress/selectSmall', dataForm)
}

// 修改

export const collectExpressUpdateApi = (dataForm: any) => {
	return service.put('/collectExpress/update', dataForm)
}

//业务常用数据
export const getExpressRelatedData = () => {
	return service.get('/collectExpress/getExpressRelatedData')
}

// 修改新
export const collectSelectOne = (id: number) => {
	return service.post('/collectExpress/selectOne', id)
}
